package com.spring.demo.spring_boot.domain;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class TempUser {
	private String id;
	// 序列化后的指定key名
	@JSONField(name = "user_name")
	private String name;
	// 不需要序列化
	@JSONField(serialize = false)
	private Integer age;
	private Date ctime;

	public TempUser() {
	}

	public TempUser(String id, String name, Integer age, Date ctime) {
		this.id = id;
		this.name = name;
		this.age = age;
		this.ctime = ctime;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", name=" + name + ", age=" + age + ", ctime=" + ctime + "]";
	}

}
